/**
 * 文章接口模块
 */

import request from '@/utils/request'

// 获取频道的文章列表
export const getArticles = params => request({
  url: '/v1_0/articles',
  method: 'GET',
  params
})

// 获取新闻文章详情
export const getArticleById = articleId => request({
  url: `/v1_0/articles/${articleId}`,
  method: 'GET'
})
